package cn.wolfcode.service.impl;

import cn.wolfcode.domain.VoteEmployee;
import cn.wolfcode.mapper.VoteEmployeeMapper;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.service.IVoteEmployeeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VoteEmployeeServiceImpl implements IVoteEmployeeService {

    @Autowired
    private VoteEmployeeMapper voteEmployeeMapper;


    @Override
    public void save(VoteEmployee voteEmployee) {
        voteEmployeeMapper.insert(voteEmployee);
    }




    @Override
    public List<VoteEmployee> listAll(Long voteId) {
        return voteEmployeeMapper.selectAll(voteId);
    }


}
